package com.blueocean_health.care.management.domain.ordervo;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.blueocean_health.care.management.common.base.time.TimeUtils;

/**
 * @Author ChenPeng cp
 * @Date 2017/8/21 10:54
 */


public class OrderDetail implements Comparable<OrderDetail> {
	
	@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date beginTime;
	@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date endTime;
    private String outworker;
    private String outworkerName;
    public String getOutworkerName() {
		return outworkerName;
	}

	public void setOutworkerName(String outworkerName) {
		this.outworkerName = outworkerName;
	}

	private String remark;
    private Boolean isRenewal;
    private Integer renewalAmount;
    private Integer renewalActualAmount;
    private String receiptNumber;
    private ChargeInfo chargeInfo;
    private SickRoomInfo sickRoomInfo;
    private WorkerInfo workerInfo;

    private Integer detailFlag;

    private Integer timeType; //订单小时制 0：24小时制  1:12小时制





    public Integer getTimeType() {
        return timeType;
    }

    public void setTimeType(Integer timeType) {
        this.timeType = timeType;
    }

    public Integer getDetailFlag() {
        return detailFlag;
    }

    public void setDetailFlag(Integer detailFlag) {
        this.detailFlag = detailFlag;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getOutworker() {
        return outworker;
    }

    public void setOutworker(String outworker) {
        this.outworker = outworker;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Boolean getRenewal() {
        return isRenewal;
    }

    public void setRenewal(Boolean renewal) {
        isRenewal = renewal;
    }

    public Integer getRenewalAmount() {
        return renewalAmount;
    }

    public void setRenewalAmount(Integer renewalAmount) {
        this.renewalAmount = renewalAmount;
    }

    public Integer getRenewalActualAmount() {
        return renewalActualAmount;
    }

    public void setRenewalActualAmount(Integer renewalActualAmount) {
        this.renewalActualAmount = renewalActualAmount;
    }

    public String getReceiptNumber() {
        return receiptNumber;
    }

    public void setReceiptNumber(String receiptNumber) {
        this.receiptNumber = receiptNumber;
    }

    public ChargeInfo getChargeInfo() {
        return chargeInfo;
    }

    public void setChargeInfo(ChargeInfo chargeInfo) {
        this.chargeInfo = chargeInfo;
    }

    public SickRoomInfo getSickRoomInfo() {
        return sickRoomInfo;
    }

    public void setSickRoomInfo(SickRoomInfo sickRoomInfo) {
        this.sickRoomInfo = sickRoomInfo;
    }

    public WorkerInfo getWorkerInfo() {
        return workerInfo;
    }

    public void setWorkerInfo(WorkerInfo workerInfo) {
        this.workerInfo = workerInfo;
    }

	@Override
	public int compareTo(OrderDetail o) {
		return TimeUtils.compare(this.beginTime, o.getBeginTime()) ? 1:-1;
	}
}
